/*
   Copyright (C) 2007 Yen-Ju Chen <yjchenx gmail>

   This application is free software; you can redistribute it and/or 
   modify it under the terms of the MIT license. See COPYING.

*/

#import <AppKit/AppKit.h>

@class KRActionButton;

@interface KRToolbar: NSView
{
	NSSearchField *searchField;
	NSTextField *tagField;
	KRActionButton *actionButton;

	id delegate;
}

- (void) setDelegate: (id) delegate;
- (id) deleagte;

- (void) setActionMenu: (NSMenu *) menu;

@end

@interface NSObject (KRToolbar)
/* predicate can be nil if there is not search text */
- (void) toolbar: (KRToolbar *) toolbar 
         searchPredicateDidChange: (NSPredicate *) predicate;
@end

